﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GtsServer.Model;
using System.Data;
using GtsServer.DAL;
using GtsServer.Common;

namespace GtsServer.Manage.Controller
{
    public class FuncPrizeParmsController
    {
        FuncPrizeParmsDAL dal = new FuncPrizeParmsDAL();
        public List<FuncPrizeParmsShow> GetListByPrizeID(int PrizeID)
        {
            DataSet ds = dal.GetListByPrizeID(PrizeID);
            List<FuncPrizeParmsShow> list = IListDataSet.DataSetToIList<FuncPrizeParmsShow>(ds, 0).ToList();
            return list;
        }

        public int Add(FuncPrizeParms model)
        {
            return dal.Add(model);
        }

        public bool Update(FuncPrizeParms model)
        {
            return dal.Update(model);
        }

        public bool Delete(int id)
        {
            return dal.Delete(id);
        }

        public bool DeleteByPrizeID(int prizeID)
        {
            return dal.DeleteByPrizeID(prizeID);
        }
    }
}
